package com.itheima.duotai;

public class Test {

    public static void main(String[] args) {
      /*  Zi  zi= new Zi();
        System.out.println(zi.i);
        zi.sing();*/
      Fu fu= new Zi();
        System.out.println(fu.i);
        fu.sing();


    }
}
class Fu{
    int  i=10;
    public void sing(){
        System.out.println("父... sing");
    }
}
class Zi extends Fu{
    int  i=20;

    @Override
    public void sing() {
        System.out.println("子.....sing");
    }
}
